﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNhaThuoc.DAL;
using QLNhaThuoc.DTO;

namespace QLNhaThuoc.BL
{
    public class MappingThuocControl
    {
        private MappingThuocDA mappingDA = new MappingThuocDA();

        public void layDuLieuTuXML(string tenFile)
        {
            mappingDA.layDuLieuTuXML(tenFile);
        }

        public List<string> layThuocTinh()
        {
            return mappingDA.layThuocTinh();
        }

        public List<List<string>> layDuLieu()
        {
            return mappingDA.layDuLieu();
        }

        public string mappingThuoc(List<ExpressionDTO> dataExpression)
        {
            return mappingDA.mappingXMLToDB(dataExpression);
        }
    }
}
